<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>AUI快速完成布局</title>
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
    <style>
        .goods{
          border: 1px solid #ccc;
        }
        .goods img{

        height:220px;
        background: red;
        }
        .goods p{
          line-height:1.5rem;
        }
        .goods .aui-row{
            line-height:1.5rem;
        }
    </style>

</head>

<body>
    <section class="aui-grid">
        <img src="./img/index_header.jpg" alt="">
    </section>

    <section class="aui-grid">
        <img src="./img/index_1805021537362148.png" alt="">
    </section>
    <section class="aui-grid">
        <div class="aui-row">
            <div class="aui-col-xs-6 goods" style="padding:0 0;">
                <img src="" alt=""  >
                <div class="aui-row">
                最新狂大衣剪短发喀
                </div>
              <p style="overflow:hidden;">  <span>¥100</span> &nbsp;&nbsp;&nbsp;
                <span>仅剩1份</span></p>
            </div>
            <div class="aui-col-xs-6 goods" style="padding:0 0;">
                <img src="" alt="" >
                <div class="aui-row">
                最新狂大衣剪短发喀
                </div>
              <p>  <span>¥100</span> &nbsp;&nbsp;&nbsp;
                <span>仅剩1份</span></p>
            </div>
            <div class="aui-col-xs-6 goods" style="padding:0 0;">
                <img src="" alt="" >
                <div class="aui-row">
                最新狂大衣剪短发喀
                </div>
              <p>  <span>¥100</span> &nbsp;&nbsp;&nbsp;
                <span>仅剩1份</span></p>
            </div>
        </div>
    </section>

</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript">
    apiready = function() {

    };

    function fnInitEventListenner() { //退出键提示框
        api.addEventListener({
            name: 'keyback'
        }, function(ret, err) {
            api.confirm({
                title: '提示',
                msg: '是否退出应用',
                buttons: ['确定', '取消']
            }, function(ret, err) {
                if (ret.buttonIndex == 1) {
                    api.closeWidget();
                }
            });
        });
    }

    function fnOpenPersonCenterWin() {
        var isLogin = false;
        if (isLogin) {;
        } else {
            api.openWin({
                name: 'login',
                url: './login.html',
                pageParam: {
                    name: 'test'
                }
            });
        }
    }

    function fnOpenMemberFriendWin() {

        api.openWin({
            name: 'member_friend',
            url: './member_friend.html',
            pageParam: {
                name: 'test'
            }
        });

    }

    function fnOpenTaskIngWin() {

        api.openWin({
            name: 'task_ing',
            url: './task_ing.html',
            pageParam: {
                name: 'test'
            }
        });
    }

    function fnOpenMainWin() {

        api.openWin({
            name: 'main',
            url: './main.html',
            pageParam: {
                name: 'test'
            }
        });
    }

    function fnOpenTaskCenterWin() {

        api.openWin({
            name: 'taskcenter',
            url: './task_center.html',
            pageParam: {
                name: 'test'
            }
        });
    }
</script>

</html>
